package com.xd.core.system.service;


import com.xd.core.system.vo.ImageVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface FileService {

    void fileRemove(String virtualPath);

    void filesRemove(List<String> virtualPaths);

    void deleteFolder(String virtualPath);

    void downloadCustomerAttachment(String path, HttpServletResponse response);

    void downloadToPack(List<String> path, HttpServletResponse response);

    ImageVO upload(MultipartFile file, String path) throws IOException;

    ImageVO uploadSinglePolicy(MultipartFile file, String path) throws IOException;

    List<String> uploadZipForPolicy(MultipartFile file, String incomingOrder);

    void replaceFile(MultipartFile file, String virtualPath, String uid) throws IOException;
}